Automattic\WooCommerce\Blocks\BlockTemplatesController D

Total Complexity 164
Dependencies 14
Dependents 1
Total lines 760
Lines of code 466
Logical lines of code 260
Comment lines 197
Methods 18
Properties 1

Methods 18

Method Rating Maintainability Complexity Lines of code
render_block_template()
D
33 46 84
add_block_templates()
C
35 28 79
init()
B
39 15 63
get_block_templates_from_woocommerce()
A
42 14 52
get_block_template_fallback()
A
43 12 47
get_block_file_template()
A
47 8 34
maybe_migrate_content()
S
62 8 11
remove_block_template_support_for_shop_page()
S
60 6 13
render_woocommerce_template_part()
S
63 6 9
update_product_archive_title()
S
64 4 10
__construct()
S
65 4 8
check_should_use_blockified_product_grid_templates()
S
64 4 10
block_template_is_available()
S
65 3 9
add_archive_product_to_eligible_for_fallback_templates()
S
61 2 14
get_block_templates()
S
70 1 6
get_template_path_from_woocommerce()
S
78 1 3
register_mini_cart_template_part_area()
S
64 1 10
get_block_templates_from_db()
S
75 1 4